package org.dromara.system.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.dromara.common.mybatis.core.page.PageQuery;
import org.dromara.system.domain.vo.SensorVo;

import java.math.BigDecimal;
import java.util.List;

/**
 * 设备信息Service接口
 *
 * @author Lion Li
 * @date 2024-10-21
 */
public interface ISensorBackUpService {

    void insertData(float value, Long deviceId);

    Float getLatestValue(Long deviceId);

    List<SensorVo> selectSensorList(Long id);

    IPage<SensorVo> getPagedDataByDeviceId(Long deviceId, PageQuery pageQuery, String startTime, String endTime);

    Long selectCountReportData();

    Long selectTotalCount(Long id);

    void insertPointData(BigDecimal channelData, long sensorId);
}
